package com.trivia

class Question {

    Level level
    String statement
    String helpMessage

    static hasMany = [answers:Answer]

    static constraints = {
        level(nullable:false)
        statement(nullable:false/*,matches:"[a-zA-Z0-9_-]+"*/)
        helpMessage(nullable:false/*,matches:"[a-zA-Z0-9_-]+"*/)
    }
}
